package com.example.goodog.customViews;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.example.goodog.R;
import com.example.goodog.activities.ParkCalendarActivity;

public class ViewCalendarButton extends ListViewButton {

	private long _ParkID;
	private Context context;
	
	public ViewCalendarButton(Context c, long ParkID) {
		super(c,R.drawable.calendar);
		
		this._ParkID = ParkID;
		this.context = c;

		this.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent = new Intent(context, ParkCalendarActivity.class);
				intent.putExtra("ParkID",_ParkID);
				((Activity)(v.getContext())).startActivity(intent); 
				
			}
		});
	}
}
